<div id="wrap_top_right" class="right_menu">
    <ul class="vmenu">
        <li id="<?php ($_GET['p'] == "dashboard") ? print 'active': print 'li_list';?>">
            <img src="../styles/images/home.png" width="24" align="absmiddle"/><a href="?m=profile&p=dashboard">เมนูหน้าหลัก</a>
        </li> 
        <li id="<?php ($_GET['p'] == "edit_profile") ? print 'active': print 'li_list';?>">
            <img src="../styles/images/edit.png" width="24" align="absmiddle"/><a href="?m=profile&p=edit_profile">แก้ไขข้อมูลส่วนตัว</a>
        </li>
        <!--<li id="<?php ($_GET['p'] == "my_pm") ? print 'active': print 'li_list';?>">
            <img src="../styles/images/mail.png" width="24" align="absmiddle"/><a href="?m=profile&p=my_pm">กล่องข้อความ</a>
        </li>-->
        <li id="<?php ($_GET['p'] == "my_post") ? print 'active': print 'li_list';?>">
            <img src="../styles/images/tag.png" width="24" align="absmiddle"/><a href="?m=profile&p=my_post">ประกาศของฉัน</a>
        </li>
        <li id="<?php ($_GET['p'] == "my_banners") ? print 'active': print 'li_list';?>">
            <img src="../styles/images/my_banner.png" width="24" align="absmiddle"/><a href="?m=profile&p=my_banners">แบนเนอร์ของฉัน</a>
        </li>
        <?php
        $show_transfer = $db->select_query('SELECT username FROM order_ads WHERE username="'.$_SESSION['usr'].'" AND status <> 2');
		$show_menu = $db->rows($show_transfer);
		if($show_menu>0){
		?>
        <li id="<?php ($_GET['p'] == "transfer_report") ? print 'active': print 'li_list';?>">
            <img src="../styles/images/money.png" width="24" align="absmiddle"/><a href="?m=profile&p=transfer_report" style="color:red;">แจ้งการโอนเงิน!</a>
        </li>
        <?php
		}
		?>
        <li>
            <img src="../styles/images/logout.png" width="24" align="absmiddle"/><a href="?m=login&p=logout">ออกจากระบบ</a>
        </li>
    </ul>
</div>